package com.yunhe.sms.service.impl;

import com.yunhe.commons.dto.Pageable;
import com.yunhe.sms.dao.StudentDao;
import com.yunhe.sms.dao.impl.StudentDaoImpl;
import com.yunhe.sms.entity.Student;
import com.yunhe.sms.service.StudentService;

import java.sql.SQLException;

/**
 * Created by Administrator on 2017/10/20 0020.
 */
public class StudentServiceImpl implements StudentService{

    StudentDao studentDao = new StudentDaoImpl();
    @Override
    public Pageable<Student> findList(Pageable<Student> pageable) throws SQLException {
        pageable = studentDao.findList(pageable);
        return pageable;
    }

    @Override
    public Pageable list(int offset, int size) {
        Pageable pageable = studentDao.list(offset, size);
        return pageable;
    }
}
